﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" validateRequest="false"  CodeFile="ColumnToProterty.aspx.cs" Inherits="ColumnToProterty" MaintainScrollPositionOnPostback="true" %>

<%@ Register src="UserControl/Tables.ascx" tagname="Tables" tagprefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
        .style1 {
            width: 100%;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
        <div class="box">
        <h2>
           資料表 轉成 Class --&gt; 欄位變屬性</h2>
           ** 資料型態未對應，目前都是String
    </div>
    <div>
        TableName:
        &nbsp;<uc1:Tables ID="Tables1" runat="server" />
&nbsp;<asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="開始轉換(x)" 
            AccessKey="x" />&nbsp;
        <asp:Button ID="Button2" runat="server" OnClick="Button2_Click" Text="欄位名稱" /><br />
        欄位名稱：<asp:Label ID="Label1" runat="server"></asp:Label><br />
        <table class="style1">
            <tr>
                <td>
        {0} : 資料欄位名稱</td>
                <td>
        {0} : 資料備註&nbsp;&nbsp;&nbsp;&nbsp;
        {1} : 資料欄位名稱</td>
            </tr>
            <tr valign="top">
                <td>
        <asp:TextBox ID="TextBox2" runat="server" Height="119px" TextMode="MultiLine" Width="350px">      Dim _{0} As String
</asp:TextBox>
                </td>
                <td>
        <asp:TextBox ID="TextBox3" runat="server" Height="119px" TextMode="MultiLine" Width="439px">
     ''' &lt;summary&gt;
    ''' {0}
    ''' &lt;/summary&gt;
    ''' &lt;value&gt;&lt;/value&gt;
    ''' &lt;returns&gt;&lt;/returns&gt;
    ''' &lt;remarks&gt;&lt;/remarks&gt;
    Public Property {1}() As String
        Get
            Return _{1}
        End Get
        Set(ByVal value As String)
            _{1} = value
        End Set
    End Property
</asp:TextBox>
                </td>
            </tr>
        </table>
        ========================================================================================================<br />
        <asp:TextBox ID="TextBox4" runat="server" Height="240px" TextMode="MultiLine" 
            Width="575px"></asp:TextBox></div>
   </asp:Content>